import request from "@/utils/request";

export default {
  createStatistics(day) {
    return request({
      url: `/statisticsservice/statisticsdaily/get/${day}`,
      method: "post"
    });
  },
  showChart(searchObj) {
    return request({
      url: `/statisticsservice/statisticsdaily/showdata/${searchObj.type}/${
        searchObj.begin
      }/${searchObj.end}`,
      method: "post"
    });
  }
};
